<?php

class Response
{
    static public function json($code = 0, $msg = '', $data = [])
    {
        $res = [
            'code' => $code,
            'message'  => $msg,
            'data' => $data
        ];
        
        exit(json_encode($res, JSON_UNESCAPED_UNICODE));
    }

    public function json0()
    {
        $res = [
            'code' => 0,
            'msg'  => '上传成功',
            'data' => [
                'src' => 909
            ]
        ];
        
        exit(json_encode($res, JSON_UNESCAPED_UNICODE));
    }
}





